#!/usr/bin/env bash

#git clone --recursive，可以将submodule也git clone下来
#不过，git clone下来的submodule，默认会在一个临时分支，必须手动切换到master分支

#./test-01-new-git-clone/test-02/333.txt必须存在！

cd ${DIR_NAME_02}
cp -f ../../333.txt 333.txt
git add 333.txt
git commit -m "add 333.txt"
git push

cd ..
git clone --recursive ${ORIGIN_DIR_NAME_01} ${DIR_NAME_01_NEW_GIT_CLONE}
cd ${DIR_NAME_01_NEW_GIT_CLONE}
cd ${DIR_NAME_02}
git checkout master
